//
//  NSString+MY.h
//  JQLive
//
//  Created by Bruce on 2020/3/26.
//  Copyright © 2020 mlqk. All rights reserved.
//

#import <Foundation/Foundation.h>

@class LSMediaRecordStatistics;
NS_ASSUME_NONNULL_BEGIN

@interface NSString (MY)
/**
 *  截取URL中的参数
 *
 *  @return NSMutableDictionary parameters
 */
- (NSMutableDictionary *)getURLParameters;
//千分位分割
- (NSString *)changeNumberFormat;
//获取当前时间戳
+ (NSString *)getNowTimeTimestamp;

- (NSString *)transformCharacter;

- (NSString *)formatterBankCardNum;

+ (NSString *)getYear;

+ (NSString *)getMonth;

+ (NSString *)getMonthAndYear;

+ (NSString *)getMonthAndYear2;

- (NSDate *)dateWithDateFormatString:(NSString *)formatString;

- (NSMutableAttributedString *)formattingPriceWithMinFont:(NSInteger)min;
- (NSMutableAttributedString *)formattingDiscountPrice;
+ (NSString *)dateFormatStringHM:(NSInteger)time;
+ (NSString *)dateFormatString:(NSInteger)time;
+ (NSString *)dateStringFormatTimeStamp:(NSString *)time;
+ (NSString *)getDateWithYMD;

+ (NSInteger)dateFormatStringWithDayStart;
+ (NSString *)changeAsset:(NSString *)amountStr;

//nim

+ (NSString *)timeStringWithSecond:(NSInteger)second;
+ (NSString *)timeStringWithFormatSecond:(NSInteger)second;
+ (NSString *)outputFileName;

+ (NSString *)documentDirectory;

+ (NSString *)documentSubDirectory:(NSString *)name;

- (CGFloat)heightWithWidth:(CGFloat)width;

//+ (NSString *)infoStringWithLSMediaRecordStatistics:(LSMediaRecordStatistics *)pStatistic;

@end

NS_ASSUME_NONNULL_END
